package com.sunyur.tailor.channel.common.middle.enums;

/**
 *
 * @Author 99288
 * @Description 通用返回枚举
 * @Date 18:00 2021/8/21
 * @Param
 * @return
**/
public enum MiddleResultEnum {
    SUCCESS("00000","操作成功"),
    PARAM_ERROR("10002", "参数错误"),
    PARAM_NULL("10000", "参数为空"),
    UNAUTHORIZED("40001","请求已失效"),
    PAYMENT_REQUIRED("40002","访问未授权"),
    FORBIDDEN("40003","签名错误"),
    FAILED("50000","操作失败"),
    EXCEPTION("50001","操作异常"),
    BAD_GATEWAY("50002","请求无效");

    private String code;
    private String value;

    MiddleResultEnum(String code, String value) {
        this.value = value;
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }
}
